
each product in news
    .am-g.pro-list-sort-content.am-margin-bottom-sm
        .am-u-sm-4
           //此处取方图小图
           a(href="/product/#{product.objectId}")
                img(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
        .am-u-sm-8.am-padding-left-0
            p.am-text-left.gray-color #{product.product.title}
            span.am-block.money-color.md-font.am-text-left.md-line-height ￥#{product.salePrice}
            .add-cart
-var index = 2;
each products in Products
    #{shopInfo.naviStyle}
    if(shopInfo.naviStyle != 'navSort')
        .am-tab-panel.am-fade.am-padding-0(id="tab#{index}")
    else
        .jfisk
            -index++;
            each product in  products
                .am-g.pro-list-sort-content.am-margin-bottom-sm
                    .am-u-sm-4
                        //此处取方图小图
                        a(href="/product/#{product.objectId}")
                            img(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
                    .am-u-sm-8.am-padding-left-0
                        p.am-text-left.gray-color #{product.product.title}
                        span.am-block.money-color.md-font.am-text-left.md-line-height ￥#{product.salePrice}
                        .add-cart
